package org.douxiaoban.client.widget;

import org.douxiaoban.client.R;

import android.content.Context;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.LinearLayout;

/**
 * 豆小瓣专用滚动条-----
 * @author 6a209
 * 8:52:02 PM May 28, 2012
 */
public class DouProgressbar extends LinearLayout{
	
	public DouProgressbar(Context context){
		this(context, null);
	}
	
	public DouProgressbar(Context context, AttributeSet attrs) {
		super(context, attrs);
		init();
	}
	
	public void showProgress(){
		setVisibility(View.VISIBLE);
	}
	
	public void hideProgress(){
		setVisibility(View.GONE);
	}
	
	private void init(){
		LayoutInflater inflater = LayoutInflater.from(getContext());
		inflater.inflate(R.layout.dou_progressbar, this, true);
	}
	
}